class CreateVideos < ActiveRecord::Migration[5.1]
  def change
    create_table :videos, comment: '视频' do |t|
      t.string :title, comment: '标题'
      t.string :description, comment: '描述'
      t.string :url, comment: '视频链接'
      t.integer :to_year, comment: '所属年份'
      t.integer :to_month, comment: '所属月份'
      t.integer :category_id, comment: '所属分类'
      t.string :pinyin, comment: '拼音'

      t.datetime :deleted_at, comment: '软删除'
      t.timestamps
    end
  end
end
